<?php 
	include "sql.php";
	$name = $passwd = $carNum = $mobile = "";
	if ($_SERVER["REQUEST_METHOD"] == "POST"){
	  $name = $_POST["name"];
	  $passwd = $_POST["passwd"];
	  $carNum = $_POST["carNum"];
	  $mobile = $_POST['$mobile'];
	  $res = userRegister($name,$passwd,$carNum,$mobile);
	  if($res) echo 1;
	  else echo 0;
	  return;
	}

?>

<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<form action="register.php" method="post">
	name:<input type="text" name="name">
	passwd:<input type="text" name="passwd">
	carNum:<input type="text" name="carNum">
	mobile:<input type="text" name="mobile">
	<input type="submit" name="">
</form>
</body>
</html>